Contents Overview

Chapter 5.  System Classes 167

An Overview
167

Application Manager
169

System Class Methods
170

System Class Specifications
176

Chapter 6.  Prograph Primitives 245

Prograph Primitives by Category
245

Prograph Primitives Descriptions
248

Chapter 7.  The Macintosh Toolbox 363

Working with the Toolbox
363

Calling Conventions
370

Essential Mac Methods
381

Index

Detailed Table of Contents

Chapter 5.  System Classes
167

An Overview
167
Application Manager
169
System Class Methods
170
Application
171
Notify
171
Mouse Down
171
Menu Click
171
Front Window
172
Update Menus
172
About
172
Menu
172
Quit
172
Cut, Copy, Paste & Clear
172
Window
172
Activate
172
Update
172
Idle
173
Key
173
Mouse Down
173
Close
173
Open
173
Bring to Front
173
Wind Draw Prep
173
Window Item
174
Mouse Down
174
Idle
174
Update
174
Hilite
174
Open
174
Close
174
Bounds
174
Canvas
175
Update
175
Scroll List
175
Mouse Down
175
Tab to Item
175
Key
175
Edit Text
175
Mouse Down
175
Tab to Item
175
Key
175
System Class Specifications
176
Key
177
Application
178
Button
182
Canvas
185
Check Box
190
Click Item
193
Edit Text
196
Graphic
201
Icon
204
Menu
207
Menu Item
210
Pict
212
Pop-up Menu
215
Radio Set
219
Scroll List
222
Scroll Text
227
System
233
Text
234
Window
238
Window Item
243

Chapter 6.  Prograph Primitives
245

Prograph Primitives by Category
245
Prograph Primitives Descriptions
248
Apple Talk
250
Application
256
Bit
260
Byte Stream
263
Data
265
Environment
267
File
269
Graphics
276
Instances
281
Interpreter Control
283
I/O
284
Lists
288
Logical/Relational
295
Math
300
Memory
313
Serial Port
323
Strings
330
System
339
System Class
346
Text
356
Type
359

Chapter 7.  The Macintosh Toolbox
363

Working with the Toolbox
363
Working with Pict and Icon Resources
364
Drawing in Canvas Items
365
Canvas Draw Method
365
Canvas Click Method 
367
Drawing in Windows
369
Calling Conventions
370
Toolbox Data Types in Prograph
373
Simple Types
374
Compound Types
374
Arrays
377
Allocating Structures
378
ABlocks, Handles and Pointers
379
ABlock
379
ABlock@ and ABlock@@
379
Accessing and Dereferencing
380
Function Pointers & Filter Functions
380
BitMaps and PixMaps
381
Essential Mac Methods
381
Cursor
381
Pen and Line Drawing
384
Text
388
Drawing in Color
391
RGB Colors
392
Rectangles
394
Calculations with Rectangles
394
Graphic Operations on Rectangles
396
Ovals
398
Round Rectangles
399
Arcs and Wedges
400
Bit Transfer 
401
Pictures 
402
Polygons 
404
Calculations with Polygons
404
Graphic Operations on Polygons
405
Points 
406
Resources 
408
Opening and Closing Resource Files 
408
Checking for Errors
409
Setting the Current Resource File
409
Accessing Resources
410
Getting Resource Information
412
Dialogs and Alerts 
414
Invoking Alerts
415
Manipulating Items in Dialogs and Alerts
416
Graphic Utilities 
418
Miscellaneous Utilities 
419

Index
627